<?php
/**
 * file: TrackController.class.php
 *
 * todo...
 * @author 
 * @copyright Copyright (C)  All rights reserved.
 * @version $Id: TrackController.class.php 1.0 2014-12-17 14:05:27Z $
 * @package Controller
 * @since 1.0
 */

class TrackPxoController extends Controller {
	var $wlmc;

	public function doAction() {
		$wl = strtolower($this->get('wl'));
		$wl = $this->wlmc[$wl];
		$dh = $this->get('tracknum');
		$la = $this->get('lang');
		$fr = $this->get('from');
		$cb = $this->get('callback');
		
		header("location: /index.php/track/" . $wl . "?tracknum=" . $dh . "&lang=" . $la . "&callback=" . $cb . "&type=jsonp&from=" . $fr);
	}
	
	function __construct() {
		$this->wlmc = array(
			"ups"			=>		"ups",
			"tnt"			=>		"tnt",
			"master"		=>		"master",
			"fedex"			=>		"fedex",
			"dhl"			=>		"dhl",
			"emsair"		=>		"xiaobao",
			"eub"			=>		"xiaobao",
			"emssll"		=>		"xiaobao",
			"emsdb"			=>		"xiaobao",
			"emsw"			=>		"xiaobao",
			"dnj"			=>		"dnjex",
			"jz"			=>		"jzex",
			"niceexpress"	=>		"nice",
			"urgent"		=>		"urgent",
			"rpx"			=>		"rpx"

		
		);
	}

}